﻿<%@ Page Title="" Language="C#" MasterPageFile="~/rightContent.Master" AutoEventWireup="true"
    CodeBehind="OtherView.aspx.cs" Inherits="WEB.contract.OtherView" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    合同列表
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <table width="100%">
        <tr>
            <td>&nbsp;
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="gvOtherView" runat="server" AutoGenerateColumns="False" 
                    BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" 
                    CellPadding="4" CssClass="distance" ForeColor="Black" GridLines="Vertical" 
                    DataKeyNames="ID" onrowcommand="gvOtherView_RowCommand" AllowPaging="True" 
                    onpageindexchanging="gvOtherView_PageIndexChanging" PageSize="20" 
                    Width="950px">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="CustomerName" HeaderText="公司名" >
                        <ItemStyle Width="240px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="ContractNO" HeaderText="合同号" >
                        <ItemStyle Width="90px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Datestart" HeaderText="开始日期" 
                            DataFormatString="{0:d}" >
                        <ItemStyle Width="90px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="Dateover" HeaderText="结束日期" 
                            DataFormatString="{0:d}" >
                        <ItemStyle Width="90px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="inputdate" HeaderText="录入日期" 
                            DataFormatString="{0:d}" />
                        <asp:BoundField DataField="Remarks" HeaderText="说明" >
                        <ItemStyle Width="200px" />
                        </asp:BoundField>
                        <asp:ButtonField ButtonType="Button" CommandName="Dow" Text="下载" >
                        <ControlStyle CssClass="Submit_gv" />
                        <ItemStyle Width="50px" />
                        </asp:ButtonField>
                        <asp:TemplateField ShowHeader="False">
                            <ItemTemplate>
                                <asp:Button ID="Button1" runat="server" CausesValidation="false" CommandName="" 
                                    onclick="Button1_Click" onclientclick="return confirm('确认删除？')" CommandArgument='<%# Eval("ID") %>' Text="删除" />
                            </ItemTemplate>
                            <ControlStyle CssClass="Submit_gv" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                    <RowStyle BackColor="#F7F7DE" />
                    <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                    <SortedAscendingCellStyle BackColor="#FBFBF2" />
                    <SortedAscendingHeaderStyle BackColor="#848384" />
                    <SortedDescendingCellStyle BackColor="#EAEAD3" />
                    <SortedDescendingHeaderStyle BackColor="#575357" />
                </asp:GridView>
            </td>
        </tr>
        <tr><td align="center">
            <asp:Button ID="return" runat="server" CssClass="Submit_yellow" 
                onclick="return_Click" Text="返回" />
            </td></tr>
    </table>
</asp:Content>
